//
//  BaseTableViewCell.m
//  StudyAbroad
//
//  Created by hackapple on 15-5-7.
//  Copyright (c) 2015年 hackapple. All rights reserved.
//

#import "BaseTableViewCell.h"


@implementation BaseTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self ksc];
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

-(void)ksc{
    if (KScreenHeight == 480 ) {
        _kscH = 1;
        _kscW = 1;
    }
    else
    {
        _kscH = KScreenHeight / 568;
        _kscW = KScreenWidth / 320;
    }
}
-(NSURL *)returenUrlWithStr:(NSString *)str{
    
    
//    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",IPStr,str]];
//    
//    return url;
    return nil;
}
-(NSString *)createdAt:(NSString *)createdTime AndFomatterStr:(NSString *)dateFormat{
    
    NSDate *confromTimesp = [NSDate dateWithTimeIntervalSince1970:[createdTime floatValue]/1000];
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    
    formatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"zh_cn"];
    
    
    formatter.dateFormat = dateFormat;
    
    NSString *createdTimeStr = [formatter stringFromDate:confromTimesp];
    
    return createdTimeStr;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
